package com.company.cloud.user.constant;

import com.company.cloud.common.constant.ReturnCodeEnum;

/**
 * 
 * */
public enum ErrorUserEnum  implements ReturnCodeEnum{
	
	
	
	User_Info_Null("1008","用户不存在"),
	User_Password_Error("1009","用户密码错误"),
	
	User_Third_Not("1010","非第三方用户"),
	User_Third_Bind_EXISTS("1011","三方已经绑定用户"),
	
	USER_MOBILE_NULL("1015","手机号不能为空"),
	USER_MOBILE_EXISTS("1016","手机号已存在"),
	
	USER_MAIL_NULL("1017","邮箱不能为空"),
	USER_MAIL_EXISTS("1018","邮箱已存在"),
	
	USER_USERNAME_NULL("1019", "用户名不能为空"),
	USER_USERNAME_EXISTS("1020", "用户名已存在"),
	
	User_Forget_Op_Error("1021","用户忘记密码操作错误"),
	
	VCode_User_Expire("1020","验证码过期"),
	VCode_User_Error("1021","验证码错误"),
	
	Permission_Has_Children("1010","存在子权限，不能操作"),

	Role_Has_Sys("1011","系统角色不能操作"),

	SMS_CAN_ONLY_BE_SENT_ONCE_PER_MINUTE("6501", "每分钟只能发一次短信"),

	SMS_SEND_LIMIT("6502", "今日短信发送已达上限"),

	SMS_FAILED_TO_SEND("6503", "短信发送失败"),

	Invitation_Fail("1029","用户不能被邀请"),

	Invitation_Error("1030","邀请信息已失效"),

	User_Info_Error("1030","此账户已被锁定，请联系官方客服"),
	;
	private String code;
	private String msg;
	private ErrorUserEnum() {
	}
	ErrorUserEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	@Override
	public String getCode() {
		return code;
	}
	@Override
	public String getMsg() {
		return msg;
	}

}
